package com.kizuki.design.chain2;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(2)
@Component
@Slf4j
public class WomanHandler extends AbstractHandler{

    @Override
    protected void doHandle(PeopleContent peopleContent) {
        log.info("当前ManContent为Woman, WomanHandler可以处理！{}", peopleContent.getMessage());
    }

    @Override
    protected boolean support(SexEnum sexEnum) {
        return SexEnum.WOMAN.equals(sexEnum);
    }

}
